package com.bawei.mall.product.controller;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductHome;
import com.bawei.mall.product.service.MallProductHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：HaoYunde
 * @Package：com.bawei.mall.product.controller
 * @Project：mall_cloud
 * @name：MallProductHomeController
 * @Date：2024/7/1 20:11
 */
@RestController
@RequestMapping("/home")
public class MallProductHomeController {
    @Autowired
    private MallProductHomeService mallProductHomeService;

    @GetMapping("/content")
    public R<MallProductHome> content(){
        MallProductHome list=mallProductHomeService.content();
        return R.ok(list);
    }


}
